package com.koron.order.concession.mapper;

import com.koron.order.concession.bean.po.ConcessionInfluencePo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 让步接收单-影响对应从表(ConcessionInfluence)表数据库访问层
 *
 * @author zhouj
 * @since 2022-01-14 10:14:07
 */
public interface ConcessionInfluenceMapper {

    int insertOrUpdate(ConcessionInfluencePo concessionInfluence);

    int insertOrUpdateBatch(@Param("list") List<ConcessionInfluencePo> concessionInfluenceList);

    int insert(ConcessionInfluencePo concessionInfluence);

    int insertBatch(@Param("list") List<ConcessionInfluencePo> concessionInfluenceList);

    int update(ConcessionInfluencePo concessionInfluence);

    int deleteById(String id);

    ConcessionInfluencePo queryById(String id);

    List<ConcessionInfluencePo> queryList(ConcessionInfluencePo concessionInfluence);

    int deleteByConcessionId(@Param("concessionId") String concessionId);
}